package cn.xyinping.controller;

import cn.xyinping.User;
import cn.xyinping.feign.clients.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 27266
 * @desrciption
 * @date 2021/11/18
 */
@RestController
public class PayController {
    @Autowired
    private UserFeignClient feignClient;
    @RequestMapping("/getById/{id}")
    public User getById(@PathVariable("id") Long id){
        return feignClient.getById(id);
    }
}
